#define _CRT_SECURE_NO_WARNINGS  1
#include"list.h"
int main()
{
	Lnode* plist = NULL;
	plist=Initlist();
	
	ListPushFront(plist, 1);
	ListPushFront(plist, 0);
	ListPushFront(plist, -1);
	ListPushFront(plist, -2);
	ListPrint(plist);

	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPushBack(plist, 4);
	ListPrint(plist);

	ListPopBack(plist);
	ListPopBack(plist);
	ListPrint(plist);

	ListPopFront(plist);
	ListPrint(plist);

	Lnode*pos=ListFind(plist,2);
	if (pos)
	{
		ListInsert(pos,99);
		ListPrint(plist);
		ListPop(pos);
		ListPrint(plist);

	}
	ListDestroy(plist);
	plist = NULL;
}